home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / eggrun.swf / scripts / frame_120 / PlaceObject2_346_36 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-03-28  |  431 b   |  19 lines

  1. onClipEvent(enterFrame){
  2.    this._y += this.yspeed;
  3.    this._x += this.xspeed;
  4.    if(this._y > 310)
  5.    {
  6.       this.temp = Math.random();
  7.       this.speed = 5 * this.temp;
  8.       this._y = random(10) - 10;
  9.       this._x = random(700) - 300;
  10.    }
  11.    if(this._x > 410)
  12.    {
  13.       this.temp = Math.random();
  14.       this.speed = 5 * this.temp;
  15.       this._y = random(10) - 10;
  16.       this._x = random(600) - 200;
  17.    }
  18. }
  19.